<blockquote>
    <p>微信Jssdk签名</p>
    <footer>
        <p>公众号登录地址 <a href="" target="_blank"></a> </p>
        <p>需要在微信公众号配置网页授权域, 且必须是备案域名, 设置如下图。</p>
    </footer>
</blockquote>
<blockquote>
    <p>设置</p>
</blockquote>
<img src="debug/jssdk.png" style="max-width: 1000px;"/>
<pre class="code brush:java">
package cn.jants.demos;


import cn.jants.common.annotation.action.Controller;
import cn.jants.common.annotation.action.POST;
import cn.jants.common.annotation.service.Application;
import cn.jants.core.startup.JTomcat;
import cn.jants.plugin.tool.WxJsApiTool;
import cn.jants.plugin.weixin.ApiResult;
import cn.jants.restful.render.Json;

/**
 * Tomcat 方式启动
 *
 * @author MrShun
 * @version 1.0
 * @Date 2017/12/20
 */
@Application
@Controller
public class DemosApplication {

    @POST("/wx/js/sign")
    public Object wxJsSign() {
        ApiResult result = WxJsApiTool.getJsApiSignature("自己公众号appId", "自己公众号appSecret");
        if (result.isOk()) {
            return result;
        } else {
            return Json.fail(String.valueOf(result.getMsg()));
        }
    }

    public static void main(String[] args) {
        JTomcat.run(DemosApplication.class, 80);
    }
}
</pre>
<script type="text/javascript">
    $(function () {
        SyntaxHighlighter.highlight();
        $(".toolbar").remove();
    });
</script>